<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition template="/template.xhtml">

	<ui:define name="conteudo">
	
		<div>
			<h1 class="form-signin-heading">Cadastrar tarefa</h1>
		</div>
		<h:form>	
			<table>
				<tr>
					<td>
						<h:outputText value="Nome Tarefa: " />
					</td>
					<td colspan="2">
						<h:inputText value="#{tarefaMB.objeto.nomeTarefa}" />
					</td>
				</tr>
				<tr>
					<td>
						<h:outputText value="Tempo Duração: " />
					</td>
					<td>
						<h:inputText value="#{tarefaMB.objeto.tempoDuracao}" />
					</td>
					<td>
						<h:outputText value="Início Execução: " />
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<td>
						<h:outputText value="Status Tarefa: " />
					</td>
					<td colspan="2">
						<h:selectOneMenu value="#{tarefaMB.objeto.statusTarefa}">
							<f:selectItems value="#{tarefaMB.dominioStatusTarefa}"/>
						</h:selectOneMenu>
					</td>
				</tr>
			
			</table>
			<div>
				<h:commandButton id="btgravarTarefa" action="#{tarefaMB.atualizarObjetoRemoto}" 	value="Gravar" styleClass="btn btn-large btn-primary" />
			</div>
			<div>
				<h:commandButton id="btconsultar" action="#{tarefaMB.init}" 	value="Consultar" styleClass="btn btn-large btn-primary" />
			</div>
		</h:form>
	
	</ui:define>
</ui:composition>

</html>